﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using ET.Entity;

namespace ET.Utility
{
    public class SessionManager
    {
        public static string Admin
        {
            get;
            set;
        }
        public static EtEmployeeInfo User
        {
            get { return HttpContext.Current.Session["user"] as EtEmployeeInfo; }
            set { HttpContext.Current.Session["user"] = value; }
        }

        //public static string Username
        //{
        //    get { return HttpContext.Current.Session["username"].ToString(); }
        //    set { HttpContext.Current.Session["username"] = value; }
        //}

        //public static string Password
        //{
        //    get { return HttpContext.Current.Session["password"].ToString(); }
        //    set { HttpContext.Current.Session["password"] = value; }
        //}
    }
}
